#include<iostream>
#include<stdio.h>
using namespace std;

int str_to_int(char s[])
{
    int i=0,sign=1,num=0;
    if(s[0]=='-')
    {
        i=1;
        sign=-1;
    }
    while(s[i]!='\0')
    {
        if(s[i]>='0'&&s[i]<='9')
        {
            num *=10;
            num +=s[i]-'0';
        }
        i++;
    }
    return num*sign;
}

int main()
{
    char a[100],b[100];
    while(cin>>a>>b)
    {
        cout<<str_to_int(a)+str_to_int(b)<<endl;
    }

    return 0;
}
